package com.fx.service;

import com.fx.entity.GoodsInfo;
import com.fx.entity.UserCart;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author yfl
 * @email 617823298@qq.com
 * @date 2018-06-19 16:13:33
 */
public interface UserCartService {
	
	UserCart getById(String flId);
	
	List<UserCart> getList(Map<String, Object> map);
	
	int getCount(Map<String, Object> map);
	
	int save(UserCart userCart);
	
	int updateById(UserCart userCart);
	
	int remove(String flId);
	
	int batchRemove(String[] flIds);

    List<UserCart> getCartByUserId(String userId);

	UserCart addGoodsToCart(GoodsInfo goodsInfo,String userId,Integer quantity);

	UserCart addQuantity(String cartId, Integer quantity);
}
